home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / cracking / BeginnersMacAssembly.sit.hqx / BeginnersMacAssembly.rsrc / PICT_72.png < prev    next >
Portable Network Graphic  |  1997-07-26  |  158KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | reckoner | sky | tree | windowpane
OCR: Sat, Feb 17 1996 Beginners Guide To Macintosh Assembly Language Programming 72age The source address given by The destination address dist* where is the number of pixels to scroll. Lines 1 to 1C calculate the destination address A1 11 to calculate the source in A0 The reason the calculations is to make the scroll routine easily modified for colour modes. At line where ENGTH 15 moved in d5 if d5 IS now by the routine will work in 16 colour mode Divide bv or colour mode and for black aad white In the same way if you want it to work in 16 bit colour, all you have to do Is multiply d5 by As proof of the pudding. example 12 is modified to worl ir 16 colour mode which Is twice as fast, simply by dividing d5 by with a shift instruction. Also note the use of the RS directives in example 11 and Fir ...